/*  1:   */ package org.jetbrains.jps;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.EmptyRunnable;

/*  4:   */
/*  5:   */ 
/*  6:   */ public class TimingLog
/*  7:   */ {
/*  8:25 */   public static final Logger LOG = Logger.getInstance(TimingLog.class);
/*  9:   */   
/* 10:   */   public static Runnable startActivity(String paramString)
/* 11:   */   {
/* 12:28 */     if (!LOG.isDebugEnabled()) {
/* 13:29 */       return EmptyRunnable.INSTANCE;
/* 14:   */     }
/* 15:31 */     final long l = System.currentTimeMillis();
/* 16:32 */     new Runnable()
/* 17:   */     {
/* 18:   */       public void run()
/* 19:   */       {
/* 20:35 */         TimingLog.LOG.debug(this.val$name + " in " + (System.currentTimeMillis() - l) + "ms");
/* 21:   */       }
/* 22:   */     };
/* 23:   */   }
/* 24:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.TimingLog

 * JD-Core Version:    0.7.0.1

 */